package test;
import java.io.FileInputStream;
import java.util.Arrays;
public class Main5 {
	public static void main(String[] args) {
		byte[] content = null;	
		try(FileInputStream fis = new FileInputStream("testfis.txt")) {			
			int bytesAvailabe = fis.available();
			if(bytesAvailabe > 0){
				content = new byte[bytesAvailabe];		    
				fis.read(content);
			}
		} catch (Exception e) {			
			System.out.println(e);
		}
		System.out.println(Arrays.toString(content));
	}
}


